package de.fhkl.strokeprotocol.messages;

import java.util.UUID;

/**
 * Message that indicates that there is a new video that has not yet been
 * accepted.
 */
public class NewVideoMessage implements IMessage
{
	private static final long serialVersionUID = -6772920196131394769L;

	/** Correspondent video id */
	private UUID mVideoId;

	/** Size (in parts) of the correspondent video */
	private int mVideoSize;

	/**
	 * Message that indicates that there is a new video that has not yet been
	 * accepted.
	 * 
	 * @param videoId
	 * @param videoSize
	 *            Size (in parts) of the correspondent video
	 */
	public NewVideoMessage(UUID videoId, int videoSize)
	{
		mVideoId = videoId;
		mVideoSize = videoSize;
	}

	/**
	 * Returns the ID of the correspondent video.
	 * 
	 * @return
	 */
	public UUID getVideoId()
	{
		return mVideoId;
	}

	/**
	 * Sets the ID of the correspondent video.
	 * 
	 * @param videoId
	 */
	public void setVideoId(UUID videoId)
	{
		mVideoId = videoId;
	}

	/**
	 * Returns the size (in parts) of the correspondent video.
	 * 
	 * @return
	 */
	public int getVideoSize()
	{
		return mVideoSize;
	}

	/**
	 * Sets the size (in parts) of the correspondent video.
	 * @param videoSize
	 */
	public void setVideoSize(int videoSize)
	{
		mVideoSize = videoSize;
	}
}
